package com.hqyj.am.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author rock
 * @since 2022-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Vacation extends MyPage implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "vacation_id", type = IdType.AUTO)
    private Integer vacationId;

    /**
     * 员工编号id
     */
    private Integer userId;

    /**
     * 开始时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    private LocalDateTime startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    /**
     * 结束时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    private LocalDateTime endTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 请假/出差方式
     */
    private String vacationWay;

    /**
     * 请假/出差缘由
     */
    private String vacationContent;

    /**
     * 审核/已审核状态
     */
    private String vacationState;

    /**
     * 通过/未通过
     */
    private String vacationNo;

    /**
     * 未通过原因
     */
    private String vacationNoWay;

    /**
     * 起始地点
     */
    private String vacationOrigin;

    /**
     * 终点
     */
    private String vacationDestination;

    /**
     * 交通方式
     */
    private String vacationTool;

    /**
     * 预知费用
     */
    private String vacationExpense;

    //不显示
    @TableField(exist = false)
    private List<User> listUser;

    @TableField(exist = false)
    private String userName;

    //部门
    @TableField(exist = false)
    private String userNum;

    @TableField(exist = false)
    private String departmentName;



}
